package com.ashin.entity;

import com.ashin.bean.StringMulti;
import com.ashin.type.TranslateTypeHandler;
import com.ashin.type.TranslateTypeHandler2;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@TableName(value = "user", autoResultMap = true)
public class UserTranslate implements Serializable {

    private Long id;

    @TableField(typeHandler = TranslateTypeHandler2.class)
    private StringMulti name;

    private Integer age;

    private String email;
}
